import json

with open("../data/test.json") as f1:
    jsonStr = f1.readline()
    print(jsonStr, type(jsonStr))
    jsonObject = json.loads(jsonStr)
    # {"key1": "v1","key2": "v2","key3": "v3", "keyList1": [{"k1": "k1v", "k2": "k2v"}, {"k3": "k3v", "k4": "k4v"}]}
    # v3
    print(jsonObject["key3"])
    #
    keyList1 = jsonObject["keyList1"]
    print(keyList1, type(keyList1))
    for dict1 in keyList1:
        print(dict1, type(dict1))
        # k1v k2v
        for k, v in dict1.items():
            print(k, v)
